/******************************************************
 *** Javascript for popup control *********************
 ******************************************************/
// Global variables
var _PopupId = "informationPopup";
var _PopupHtmlMessage = "";

// Global functions
function SetPopup(json) {
	// Get the json content
	dictionary = jQuery.parseJSON(json);
	
	// HTML message
	_PopupHtmlMessage = "<div id=\"" + _PopupId + "\" title=\"" + dictionary['popupTitle'] + "\" style=\"display: none;\">";
	_PopupHtmlMessage += dictionary['popupMessage'];
	_PopupHtmlMessage += "</div>";
	
	// Reset the control
	$("#" + _PopupId).remove();
	
	// Add the html
	$("body").append(_PopupHtmlMessage);
		
	// Show the popup
    $("#" + _PopupId).zinoOverlay({
    	width: 300,
		height: 240,
		modal: true,
		autoOpen: true,
		toolbar: {minimize : false, maximize : false, close : true},
		buttons: {}
	});
}
